<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人店铺-公司相册</title>
<link href="<?php echo $this->_webroot('/style/jq-ui/jquery-ui-1.8.18.custom.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('/style/css.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('/style/content.css'); ?>" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery-1.7.1.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery-ui-1.8.18.custom.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery.carouFredSel-5.5.0-packed.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/js.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/content.js'); ?>"></script>

</head>

<body>


<psp:tags     htmlname='shop_topnav'  iconname='shoptopnav' />

<div class="head headpadding">
    <psp:tags     htmlname='shopsearch_default'  iconname='shopsearch_default' />
    <div class="clear"></div>
</div>
<!-- nav_wrap -->
<div class="nav_wrap">
	<div class="nav_logo border_bottom1">
    	<img src="<?php if(!empty($SHOP['shop_template_img'])) {echo $SHOP['shop_template_img'];}else{echo $this->_webroot('photo/company_logo.jpg');}?>"  onerror="this.src='<?php echo $this->_webroot('photo/company_logo.jpg'); ?>'" width="998" height="154" />
    	<div class="nav1_content">
    		<ul class="nav1_ul">
                <psp:tags     htmlname='shopnav_default'  iconname='shopnav' />
            </ul>	
        
    	</div>    
    </div>
    
</div>
<!-- nav_wrap end -->

<div class="container margintop1">

	<!-- main_left -->
	<div id="main_left">
		<psp:tags     htmlname='shopleftmenu_default'  iconname='shopleftmenu_default' />	
        
        <!--  客服中心 -->
		<psp:tags     htmlname='shopservice_default'  iconname='shopservice_default' />
        <!--  客服中心 end -->
        
        <!-- 销量排行 -->
		<psp:tags     htmlname='shopsalesrank_default'  iconname='shopsalesrank_default' />	
        <!-- 销量排行 -->
        <div class="clear"></div>
        
        
    </div>
    <!-- main_left end -->

	<!-- main_right -->
	<div id="main_right">    
   		<!-- 公司相册 -->
		<div class="company_license_wrap">
            <div class="company_license_hd">
                <span class="company_license_label">公司相册</span>
				<?php if ( $user_id == $SHOP['user_id'] ) { ?>
				<a class="more1" href="<?php echo $this->_url('album/index');?>">上传相片</a>	
                <?php } ?>				
            </div>
        	<div class="company_photo_body">
			    <?php foreach($shop_album as $key => $value) { $value = $value['i']; $temp_shop_album_1[$value['shopalbum_id']] = $value['shopalbum_id']; ?>
            	<div class="company_photo_content">
                	<a href="<?php echo $this->_url('shop/albumshow/'.$SHOP['id'].'/?cat='.$value['shopalbum_id']);?>"><img src="<?php echo $value['img_url'];?>" width="172" height="171" /></a>
                    <p class="photo_name"><?php echo $shop_album_cat[$value['shopalbum_id']];?></p>
					<?php if ( ($user_id == $SHOP['user_id']) && $value['shopalbum_id']>0 ) { ?>
                    <div style="float:left;line-height: 28px; padding-left:10px;" ><a href="<?php echo $this->_url('album/delabum/?').'cat='.$value['shopalbum_id'].'&page=';?>">删除相册</a></div>
                    
		<div class="top-menu-box" >
        	<ul class="top-menu">
                <li class="top-menu-item" style="background: none;">
                	<div class="top-menu-sub">
                    	<a href="#" class="menu-hd hasSub">合并相册<b></b></a>
                    </div>
                    <div class="top-sub-menu">
					    <?php foreach($shop_album_cat as $key1 => $value1) { ?>
                        <a href="<?php echo $this->_url('album/upalbumcat/?').'cat='.$value['shopalbum_id'].'&page=&newcat='.$key1;?>"><?php echo $value1;?></a>
						<?php } ?>
                    </div>
                </li>
            </ul>
        </div>	
					
					
					<?php } else if( $value['shopalbum_id']>0 ) { ?>
					<span class="photo_click">点击率(1500)</span><span class="photo_comment">评论(1500)</span>
					<?php } ?>
                </div>
				<?php } ?>

			    <?php foreach($shop_album_cat as $key => $value) {  ?>
				<?php if (!isset($temp_shop_album_1[$key])) { ?>
            	<div class="company_photo_content">
                	<a href="#"><img src="<?php echo $this->_webroot('user/images/nopic.gif'); ?>" width="172" height="171" /></a>
                    <p class="photo_name"><?php echo $value;?>[无图片]</p>
					<?php if ( ($user_id == $SHOP['user_id']) && $key>0 ) { ?>
                    <div style="float:left;line-height: 28px; padding-left:10px;" ><a href="<?php echo $this->_url('album/delabum/?').'cat='.$key.'&page=';?>">删除相册</a></div>
					<?php } else if( $key>0 ) { ?>
					<span class="photo_click">点击率(1500)</span><span class="photo_comment">评论(1500)</span>
					<?php } ?>
                </div>
				<?php } ?>
				<?php } ?>				
			 
			 
                <div class="clear"></div>
            </div>
<!--
            <div class="page-box margintop4">
                <a href="#" class="pre">上一页</a>
                <a href="#">1</a>
                <a href="#">2</a>
                <span class="more">...</span>
                <a href="#">9</a>
                <a href="#">10</a>
                <span class="on">11</span>
                <a href="#">12</a>
                <a href="#">13</a>
                <span class="more">...</span>
                <a href="#">20</a>
                <a href="#">21</a>
                <a href="#" class="next">下一页</a>
                <span>共25页</span>
                <span>到<input type="text" class="go-page" name="" />页</span><input type="button" class="go-page-btn" value="跳&nbsp;转" />
             </div> 
-->			 
    	</div>
		<!-- 公司相册 end -->
    </div>
    <!-- main_right end -->

	<div class="clear"></div>
</div>
<!-- 友情链接 -->
<psp:tags     htmlname='links'  iconname='links' />
<!-- 友情链接 end -->

<div class="clear"></div>

<psp:tags     htmlname='default_footer'  iconname='defaultfooter' />
</body>
</html>